package com.xxxy.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxy.model.ExaminationPaper;
import com.xxxy.response.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author sjh
 * @date 2022/2/27 15:56
 */
public interface ExaminationPaperDao extends BaseMapper<ExaminationPaper> {

    List<ExaminationPaperResponse> list(@Param("facultyId") Integer facultyId,
                                        @Param("courseId") Integer courseId,
                                        @Param("examinationName") String examinationName,
                                        @Param("isReviewed") Integer isReviewed,
                                        @Param("teacherAccount") String teacherAccount);

    ExaminationPaperResponse getById(@Param("id") Integer id);

    List<PaperTeachingClass> selectExamPaperList();

    ExamStudent selectStudentByAdministrativeClass(@Param("studentAccount") String studentAccount,
                                                   @Param("administrativeClass") Integer administrativeClass);

    ExamStudent selectStudentByTeachingClassId(@Param("studentAccount") String studentAccount,
                                               @Param("teachingClassId") Integer teachingClassId);

    StudentPaperResponse getCourseFacultyByPaperId(Integer paperId);
}
